import http from '../utils/request'

const getHouseList = function(data){
    return http.get('/api/house/list',data)
};
// 修改状态
const houseChange = function(data) {
    return http.post('/api/house/change',data)
}
// 删除房源
const delHouse = function(data) {
    return http.post('/api/del/house',data)
}
// 新增房源
const addHouse = function(data) {
    return http.post('/api/add/house',data)
}
// 编辑房源
const editHouse = function(data) {
    return http.post('/api/edit/house',data)
}
const houseApi = {
    getHouseList,
    houseChange,
    delHouse,
    addHouse,
    editHouse
}

export default houseApi